<?php

if($_POST['task'] == 'remember')
{  require_once  __CFG_PATH_LIBS . __CFG_PATH_CORE."mail.php";
  generateNewUserPass($Errors, $_POST['email']);
  if(isEmptyArr($Errors))
  {
  	showMessageJVSC($language['user']['checkEmailForNewPassword']);
  	go_toJVSC(getPath()."login".$CONFIG['webPageFileType']);
  	exit;
  }
}

$ErrorMessages = array();
foreach($Errors as $n => $error)
{
  $ErrorMessages[] = $ERRORS['user'][$error];
}
$tpl->assign("ErrorMessages", $ErrorMessages);
$tpl->assign("task", $_POST['task']);

$tpl->assign("PageTitle", $language['user']['passwordReminder']);

$_BODY_SMARTY_TEMPLATE = $CONFIG['ModulesFolder']."module.forgot.tpl";

?>